﻿using CNKI.TPI.Web.Base;
using CNKI.TPI.Web.Search.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CNKI.TPI.Web.UI.Controllers.Admin
{
    public class AdminController : BaseController
    {
        
         //GET: /Admin/

        //public void Index()
        //{
        //    //DRSManager manager = new DRSManager();
        //    //manager.UpdateDRSInfo();
        //    //manager.UpdateMultiDRSInfo();
        //    LoginUserInfo userInfo = SessionHelper.GetUserInfo();
        //    if (userInfo != null)
        //    {
        //        string url = string.Format("~/60/Admin/Login.aspx?usercode={0}&password={1}", EncryptHelper.Encrypt(userInfo.UserCode), EncryptHelper.Encrypt(userInfo.password));
        //        Response.Redirect(url);
        //    }
        //    else
        //    {
        //        //  Response.Write("<script>alert(\"请先登录!\")</script>");
        //        Response.Redirect("~/Home/Login");
        //    }
        //}

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult CommonIndex(string controllstr, string actionstr)
        {
            ViewBag.UrlStr = Url.Action(actionstr, controllstr);
            return View();
        }
        

    }
}
